package com.onepiece.gen.frame.rules.factory;

import com.onepiece.gen.frame.rules.rule.Rule;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author Administrator
 * Date 2022/12/15 10:05
 * Version 1.0
 * Description TODO
 **/
public class RuleFactory {

    public final static Map<String , Rule> ruleMap = new HashMap<>();

    public static Rule getRule(String ruleId){
        return ruleMap.get(ruleId);
    }

    static {
        // load rule
        ruleMap.put("1001" ,new Rule("1001","登录认证校验","未获取到登录信息,请登录!","1","xxClassImpl","validate"));
    }
}
